Skip to content

Run the actual algorithm tests and preserve stable custom ordering - #1

Merged
mrsddq merged 1 commit into
mainfrom
codex/algorithm-reference-contracts
Sep 19, 2026
Merged

mrsddq merged 1 commit into
mainfrom
codex/algorithm-reference-contracts

Conversation

@mrsddq

@mrsddq mrsddq commented Sep 17, 2026

Copy link
Copy Markdown
Owner

The previous Makefile invoked unittest even though the suite uses pytest, allowing verification to run zero tests. Merge sort also required <=, rejecting custom objects that implement Python's usual < sorting contract.

This change wires pytest into Make, CodeBuild, and a Python 3.11–3.13 Actions matrix, isolates collection from interactive historical exercises, and preserves stable order using only <. It adds exhaustive small-domain oracle checks plus stability, immutability, stack underflow, and queue reuse regressions. The README documents complexity and supported behavior.

Validation: 9 pytest tests pass locally on Python 3.12; git diff --check passes. Historical practice files remain outside the supported reference API.

@mrsddq
mrsddq merged commit c7ba6d7 into main Sep 19, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant